package org.xiaojinlong.regex.nfa;

/**
 * @author Jin Long
 *         2016/2/1.
 */
public class State {
    // 这两个变量用作常量以跟普通的字符区别开，它们的值没有意义
    public static char SPLIT = 256;
    public static char MATCH = 257;
    // 匹配状态
    public static State MATCH_STATE = new State(MATCH, null, null);

    public char c;
    public State out1;
    public State out2;
    public int lastList;

    public State(char c, State out1, State out2) {
        this.c = c;
        this.out1 = out1;
        this.out2 = out2;
    }
}
